#ifndef ADDFRIENDWIDGET_H
#define ADDFRIENDWIDGET_H

#include <QDialog>
#include "AbstractLayer/Network/threadmanger.h"
#include "UserLayer/GUI/AddfriendWidget/addfriendbox.h"
namespace Ui {
class AddFriendWidget;
}

class AddFriendWidget : public QDialog
{
    Q_OBJECT

public:
    explicit AddFriendWidget(QWidget *parent = nullptr);
    ~AddFriendWidget();
    void addFriendToList(const QString& friendoc,const QString& friendname);
private slots:
    void on_btn_search_clicked();
    void loadFriendToUI(const QString& friendoc);
signals:

private:
    Ui::AddFriendWidget *ui;
    QString friendoc;
    QString useroc;
    AddFriendBox* resultfriend;
};

#endif // ADDFRIENDWIDGET_H
